<div class="row" ng-controller="addCtr">
  <div class="col-md-12">
    <table class="table">
      <tbody>
      <tr>
        <td></td>
        <td></td>
        <td></td>
        <td class="text-right"><a href="#"  ui-sref='index.class' class="label label-primary ">返回列表</a></td>
      </tr>
      </tbody>
    </table>
    <div class="col-md-10 col-md-offset-1" >
      <form class="form-horizontal">
        <div class="form-group">
          <label>名称</label>
          <input type="text"  ng-model="froms.name" class="form-control" placeholder="分类" >
        </div>
        <div class="form-group">
          <label>分类</label>
          <select class="form-control" ng-model="froms.pid" >
            <option selected  value="0" >顶级</option>
            <option  ng-repeat="v in categorys" value="{{v.data.id}}"  >{{ v.tree1}}{{v.data.name}}</lable></option>
          </select>
         </div>
        <div class="form-group">
          <label >介绍</label>
          <textarea ng-model="froms.intro" class="form-control" rows="3"></textarea>
        </div>
        <div class="form-group">
          <label >状态</label>
          <input type="checkbox"  ng-model="froms.status"  id="blankCheckbox" value="option1" aria-label="...">
        </div>

        <div class="form-group">
          <div class=" col-sm-12 w-from-buttom">
            <button type="button"  ng-click="formsButton()" id="formsButton" class="btn btn-default">添加</button>
          </div>
        </div>
      </form>

    </div>
  </div>
</div>